package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 智零工商户余额表
 * @author tianyonghong
 * @create 2023/2/23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_odd_job_merchant_balance")
public class OddJobMerchantBalance extends Model<OddJobMerchantBalance> {
    private static final long serialVersionUID = 1L;

    /**
     * 智零工商户表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商户ID")
    private Integer merchantId;

    @ApiModelProperty("主体")
    private Integer partyId;

    @ApiModelProperty("主体当前余额")
    private BigDecimal balance;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
